package com.interpreter.self;

import java.util.HashMap;

public class VarEmulation extends Emulation {

    private String key;

    public VarEmulation(String key) {
        this.key = key;
    }

    @Override
    public int intercept(HashMap<String, Integer> var) {
        return var.get(this.key);
    }
}
